import Vue from 'vue'
import VueRouter from 'vue-router'
Vue.use(VueRouter)


const router = new VueRouter({
  mode:'history',
  routes:[
    { path: '/', name: 'index', component: () => import('../components/index')},
    {path:'/header',name:"header",component:()=>import('../components/header')},
    {path:'/radios',name:"radios",component:()=>import("../components/music/radios")},
    {path:'/mv',name:'mv',component:()=>import("../components/music/mv")},
    {path:'/singleList',name:'musicListDetails',component:()=> import("../components/details/musicListDetails")},
    {path:'/search',name:'search',component:()=>import("../components/details/search")},
    {path:'/play',name:'play',component:()=>import("../components/details/play")},
    {path:'/musicList',name:'musicList',component:()=>import("../components/music/musicList")},
    {path:'/singer',name:'singer',component:()=>import("../components/music/singer")},
    {path:'/login',name:'login',component:()=>import("../components/user/Login")},
    {path:'/register',name:'register',component:() => import("../components/user/register")},
    {path:'/singerDetails',name:'singerDetails',component:() => import("../components/details/singerDetails")}
  ],
})

export default router
